import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {rules} from '/@/utils/helper/validator';
import {render} from '/@/utils/common/renderUtils';

import { bizBasicInfoAllList } from './BizOutbound.api.ts';

export const columns: BasicColumn[] = [

  {
    title: '出库单号',
    dataIndex: 'outboundNo'
  },
  {
    title: '客户',
    dataIndex: 'customer'
  },
  {
    title: '部门',
    dataIndex: 'department'
  },
  {
    title: '订单号',
    dataIndex: 'orderNo'
  },
  {
    title: '交货日期',
    dataIndex: 'deliveryDate'
  },
];

export const searchFormSchema: FormSchema[] = [

  {
    label: '出库单号',
    field: 'outboundNo',
    component: 'Input'
  },
];

export const formSchema: FormSchema[] = [
  // TODO 主键隐藏字段，目前写死为ID
  {label: '', field: 'id', component: 'Input', show: false},


  {
    label: '出库单号',
    field: 'outboundNo',
    component: 'Input',
  },
  {
    label: '客户',
    field: 'customer',
    component: 'Input',
  },
  {
    label: '部门',
    field: 'department',
    component: 'Input',
  },
  {
    label: '订单号',
    field: 'orderNo',
    component: 'Input',
  },
  {
    label: '交货日期',
    field: 'deliveryDate',
    component: 'DatePicker',
    componentProps: {
      showTime: true,
      valueFormat: 'YYYY-MM-DD HH:mm:ss',
    },
  },
];
